<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1 {
            width: 500px;
            height: 500px;
            margin: 0px auto;
            background-color: #fedcba;
        }
    </style>
</head>
<body>
    <main>
        <div class="div1">

        </div>
    </main>
</body>
<script>
    let div1 = document.querySelector(".div1");
    console.log(div1);
    div1.onmousemove = function(e) {
        console.log(e);
    }

</script>
</html>